/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package moblima;

import java.util.List;
import java.util.Scanner;

/**
 *
 * @author Nguyen Hoang Yen
 */
public class Movie {
    enum MovieType {
        THREE_D, DIGITAL, BLOCK_BUSTER
    } 
    
    enum MovieStatus {
        UPCOMING, NOWSHOWING, ENDOFSHOWING
    }
    
    int movieId;
    String movieName;
    MovieType movieType;
    MovieStatus movieStatus;

    public Movie() {
        
    }
    
    public Movie(List<String> list) {
        movieId = Integer.parseInt(list.get(0));
        movieName = list.get(1);
        movieType = MovieType.valueOf(list.get(2));
        movieStatus = MovieStatus.valueOf(list.get(3));
    }
    
    public Movie(int movieId, String movieName, MovieType movieType, MovieStatus movieStatus) {
        this.movieId = movieId;
        this.movieName = movieName;
        this.movieType = movieType;
        this.movieStatus = movieStatus;
    }
    
    private void read(Scanner sc) {
        
    }
    
    public MovieType getMovieType() {
        return movieType;
    }

    public void setMovieType(MovieType movieType) {
        this.movieType = movieType;
    }

    public MovieStatus getMovieStatus() {
        return movieStatus;
    }

    public void setMovieStatus(MovieStatus movieStatus) {
        this.movieStatus = movieStatus;
    }
    
    
    public int getMovieId() {
        return movieId;
    }

    public void setMovieId(int movieId) {
        this.movieId = movieId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }
    
    
}